.get-company-info {
  @apply relative flex justify-center items-center overflow-hidden;
  @apply w-[112px] h-[36px] p-[10px_12px] bg-[#0f99ff] rounded-[8px] border border-[#ebebeb];
  @apply text-[13px] text-white cursor-pointer;
  @apply transition-all duration-300;
  @apply hover:bg-[#000] hover:text-[#fff];

  &.custom-loading {
    cursor: not-allowed !important;

    &::before {
      @apply absolute top-0 left-0 block w-full h-full content-[''] bg-[#d5d5d5];
    }

    &::after {
      @apply absolute top-1/2 left-1/2 block w-[16px] h-[16px] content-[''] rounded-[50%];
      border: 2px solid #fff;
      border-top: 2px solid transparent;
      transform: translate(-50%, -50%);
      animation: spin 1s linear infinite;
    }
  }
  /* 添加转圈动画的CSS */
  @keyframes spin {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
}

.company-info {
  @apply relative z-[999] box-border w-full h-max p-5 mt-5 overflow-hidden rounded-[8px];
  @apply hidden grid-cols-4 auto-rows-[30px] items-center;
  @apply text-[12px] text-black;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  box-shadow: 3px 3px 6px 1px #c6ccd3;
  transition: all 0.3s ease-in-out;

  .item {
    @apply truncate;

    @for $i from 1 through 11 {
      &.col-span-#{$i} {
        grid-column: span $i;
      }
    }

    .copy-btn {
      @apply ml-2 text-[#5c7e38] cursor-pointer opacity-0 transition-all duration-300;
      @apply hover:select-none hover:opacity-100;
    }

    .check-btn {
      @apply text-[#8A7AF7] cursor-pointer bg-transparent border-none transition-all duration-300;
      @apply hover:text-[#403DF0];
    }
  }

  &.activate {
    display: grid;
  }

  &.custom-loading::after {
    @apply absolute top-0 left-0 z-[9999] flex items-center justify-center w-full h-full;
    @apply text-[18px] text-white tracking-[2px];
    content: attr(data-loading);
    background-color: rgb(0 0 0 / 60%);

    // animation: loading 1.5s linear infinite;
  }
}
